import request from '@/utils/request'

// 查询风机列表
export function listFengji(query) {
  return request({
    url: '/ruoyi-yuce/fengji/list',
    method: 'get',
    params: query
  })
}

// 查询风机详细
export function getFengji(id) {
  return request({
    url: '/ruoyi-yuce/fengji/' + id,
    method: 'get'
  })
}

// 新增风机
export function addFengji(data) {
  return request({
    url: '/ruoyi-yuce/fengji',
    method: 'post',
    data: data
  })
}

// 修改风机
export function updateFengji(data) {
  return request({
    url: '/ruoyi-yuce/fengji',
    method: 'put',
    data: data
  })
}

// 删除风机
export function delFengji(id) {
  return request({
    url: '/ruoyi-yuce/fengji/' + id,
    method: 'delete'
  })
}
